#include"TcpServer.hpp"

#include<memory>

//  ./xxx port
int main(int argc,char *argv[])
{
    if(argc!=2)
    {
        std::cout<<"Usage "<<argv[0]<<std::endl;
        exit(0);
    }
    EnableScreen();
    uint16_t serverport=std::stoi(argv[1]);
    std::unique_ptr<TcpServer> t = std::make_unique<TcpServer>(serverport);
    t->InitServer();
    t->Loop();
    
    return 0;
}